package mse.eai.jbpm.confirmFriendshipRequest;

import org.jboss.logging.Logger;
import org.jbpm.graph.def.ActionHandler;
import org.jbpm.graph.exe.ExecutionContext;

public class PrepareConfirmationRequest implements ActionHandler {
	
	private static final Logger log = Logger.getLogger(PrepareConfirmationRequest.class);

	@Override
	public void execute(ExecutionContext context) throws Exception {

		log.info("FOI SINALIZADO O processKey = " + context.getProcessInstance().getKey());
		
		log.info ("Executing ---------->");
		
		context.setVariable("action", "CONFIRM");
		
		log.info("Set in context: " + "action  = " + "CONFIRM");
		
		context.leaveNode();
		
		log.info ("<--------------- Done");
		
		
	}

}
